-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop BTreeMap casts from reborrowing #74777
Conversation
r? @sfackler (rust_highfive has picked a reviewer for you, use r? to override) |
☔ The latest upstream changes (presumably #73265) made this pull request unmergeable. Please resolve the merge conflicts. |
256c0c7
to
27ab6dd
Compare
27ab6dd
to
9b7de6c
Compare
Continuing from #75058. |
9b7de6c
to
d88c611
Compare
d88c611
to
0522040
Compare
@bors r+ |
📌 Commit 0522040 has been approved by |
☀️ Test successful - checks-actions, checks-azure |
Down in btree/node.rs, the interface and use of
cast_unchecked
look a bit shady. It's really just there for invertingforget_type
which does not borrow. By borrowing we can't write the samecast_unchecked
in the same way at the Handle level.No change in undefined behaviour or performance.